<? if($succ){ ?>
<? }else{ ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>企业工厂 -- 为你的工作贡献力量</title>
</head>
<style>
@import url(/image/fileuploader.css);
</style>
<script src="<?=$style?>/image/fileuploader.js"></script>
<body>
<script>       
    function createUploader(){            
        var uploader = new qq.FileUploader({
            element: top.document.getElementById('file-uploader-demo1'),
            action: '/knowledge/attachment',
			//button: true,
			params: {inajax:'2', kid:<?=$kid?>},
			sizeLimit: 1024*1024*10,	//10mb
            debug: true,
			showMessage: function(msg){
				window.top.message(msg, 'error');
			}
        });
    }
    window.onload = createUploader;  
</script>   
</body>
</html>
<? } ?>